package com.example.loopyserver.exception;


import com.example.loopyserver.common.ResultCode;

public class CommonException extends Exception {
    public final ResultCode code;

    public CommonException() {
        this(ResultCode.FAILED);
    }

    public CommonException(String msg) {
        this(ResultCode.FAILED, msg);
    }

    public CommonException(ResultCode code) {
        super(code.defaultMsg);
        this.code = code;
    }

    public CommonException(ResultCode code, String msg) {
        super(msg);
        this.code = code;
    }
}
